package com.informatics.polymer.server.propertysearch;
/**
 * Class to contain information on the name of the property and the maximum and 
 * minimum values the property can take for a search.
 * @author ed
 * @version 1.0
 */
public class RepeatUnitProperty {
	/**
	 * Name of the property.
	 */
	private String propertyName;
	/**
	 * Minimum value the property can take.
	 */
	private double propertyMinimumValue;
	/**
	 * Maximum value the property can take.
	 */
	private double propertyMaximumValue;
	/**
	 * Constructs RepeatUnitProperty object. 
	 * @param property - property name.
	 * @param max - maximum value the property can take.
	 * @param min - minimum value the property can take.
	 */
	public RepeatUnitProperty(final String property, final double max, final double min){
		this.propertyName = property;
		this.propertyMaximumValue = max;
		this.propertyMinimumValue = min;
	}
	/**
	 * 
	 * @return String representation of the property name.
	 */
	public String getName(){
		return propertyName;
	}
	/**
	 * 
	 * @return double value representing the maximum value the property can take.
	 */
	public double getMaximumValue(){
		return propertyMaximumValue;
	}
	/**
	 * 
	 * @return double value representing the minimum value the property can take.
	 */
	public double getMinimumValue(){
		return propertyMinimumValue;
	}
	
}
